<!DOCTYPE html>

<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
  <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
  <link rel="icon" href="/favicon.ico" type="image/x-icon">
  <title>Cabin - The best JavaScript and Node.js logging service</title>
  <link rel="stylesheet" href="https://unpkg.com/docute@3/dist/docute.css" type="text/css">

  <meta property="og:title" content="The best JavaScript and Node.js logging service">
  <meta property="og:description" content="Cabin is the best alternative to and compatible with Sentry, Timber, Airbrake, Papertrail, Loggly, and Bugsnag.">
  <meta property="og:site_name" content="Cabin">
  <meta property="og:type" content="website">
  <meta property="og:image" content="https://raw.githubusercontent.com/cabinjs/cabin/master/media/cabin.png">
</head>

<body>
  <div id="app">
  </div>
  <script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise"></script>
  <script src="https://unpkg.com/cabin"></script>
  <script src="https://unpkg.com/xhook"></script>
  <script src="https://unpkg.com/parse-request"></script>
  <script src="https://unpkg.com/cuid"></script>
  <script type="text/javascript">
    (function() {
      var cabin = new Cabin({ axe: { showMeta: true }});
      cabin.setUser({
        id: '1',
        email: 'test@example.com',
        full_name: 'test'
      });
      cabin.info('viewed docs');
      cabin.error(new Error('oops!'));
      xhook.before(function(req) {
        if (typeof req.headers !== 'object') req.headers = {};
        if (!req.headers['X-Request-Id'])
          req.headers['X-Request-Id'] = cuid();
        cabin.info('xhr', parseRequest({ req: req }));
      });
    })();
  </script>
  <script src="https://unpkg.com/docute-emojify@0.1" type="text/javascript"></script>
  <script src="https://unpkg.com/docute@3/dist/docute.js" type="text/javascript"></script>
  <script src="./config.js" type="text/javascript"></script>
</body>
</html>
